<%@page import="cn.edu.ujn.finalwork.dao.Base"%>
<%@page import="cn.edu.ujn.finalwork.dao.Customer"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>查询全部客户</title>
  <style>
             .content{
                background-color: antiquewhite;
                border: 1px solid black;
                box-shadow: 2px 2px 2px 2px rgb(138, 136, 165);
                padding: 10px;
                margin: 0 auto;
                position: relative;
                width:400px;
            }
        </style>
</head>
<body>
<div class="content">

<%
   List<Customer> all=(List<Customer>)session.getAttribute("all");
List<String> userId=(List<String>)session.getAttribute("userId");
List<String> createId=(List<String>)session.getAttribute("createId");
List<String> source=(List<String>)session.getAttribute("source");
List<String> induety=(List<String>)session.getAttribute("induety");
List<String> level=(List<String>)session.getAttribute("level");
int i=0;
%>
     <ul>
       <%
                        for(Customer c:all){
                    %>
                    <li>
                    客户编号：<%=c.getCustId() %>
                    <br>
                    客户名称：<%=c.getCustName() %>
                    <br>
                    负责人：<%=userId.get(i) %>
                    <br>
                    创建人：<%=createId.get(i) %>
                    <br>
                    客户信息来源：<%=source.get(i) %>
                    <br>
                    客户所属行业：<%=induety.get(i) %>
                    <br>
                    客户级别：<%=level.get(i) %>
                    <br>
                    联系人：<%=c.getCustLinkman() %>
                    <br>
                    固定电话：<%=c.getCustMoblie() %>
                    <br>
                    移动电话：<%=c.getCustPhone() %>
                    <br>
                    邮政编码：<%=c.getCustZipcode() %>
                    <br>
                    联系地址：<%=c.getCustAddress() %>
                    <br>
                    创建时间：<%=c.getCustCreatetime() %>
                    </li>
                    <%i++;}%>
      
      </ul>
</div>

    
    
</body>
</html>
